/***************************************************************************
 * Copyright (C) 2013 Dj_Skual
 *
 * This software is provided 'as-is', without any express or implied
 * warranty. In no event will the authors be held liable for any
 * damages arising from the use of this software.
 *
 * Permission is granted to anyone to use this software for any
 * purpose, including commercial applications, and to alter it and
 * redistribute it freely, subject to the following restrictions:
 *
 * 1. The origin of this software must not be misrepresented; you
 * must not claim that you wrote the original software. If you use
 * this software in a product, an acknowledgment in the product
 * documentation would be appreciated but is not required.
 *
 * 2. Altered source versions must be plainly marked as such, and
 * must not be misrepresented as being the original software.
 *
 * 3. This notice may not be removed or altered from any source
 * distribution.
 *
 * DevSaveButtons.hpp
 *
 * for SaveGame Manager GX
 ***************************************************************************/
#ifndef _DEVSAVEBUTTONS_HPP_
#define _DEVSAVEBUTTONS_HPP_

#include "../CommonButtons.hpp"
#include "../../Prompts/PathBrowser.h"

class DevSaveButtons : public CommonButtons
{
	public:
		DevSaveButtons();
		virtual ~DevSaveButtons();
		
		void SetActionButtons();
		
	private:
		void OnActionClick(ManageButtons *buttons, int choice);
		void OnInstallClick(ManageButtons *buttons, int choice);
		void OnEmuClick(ManageButtons *buttons, int choice);
		void OnPathClick(ManageButtons *buttons, int choice);
		void OnPathBrowserButtonClick(PathBrowser *menu, u8 filter, bool doneClicked, const std::string &Path);
		void OnConfirmClick(ManageButtons *buttons, int choice);
		void OnTaskEnd(GuiElement* task, int result);
		
		bool installType;
		enum
		{
			INSTALL_DEV_NAND,
			INSTALL_DEV_ENAND
		};
		
		ManageButtons * installButtons;
		ManageButtons * emuButtons;
		ManageButtons * pathButtons;
};

#endif
